package com.antis.olsl.library.adapter;

import com.antis.olsl.library.R;
import com.antis.olsl.library.bean.MenuInfo;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

public class SingleAdapter extends BaseQuickAdapter<MenuInfo, BaseViewHolder> {

    public SingleAdapter(int layoutResId, List<MenuInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MenuInfo item) {
        helper.setText(R.id.tv_name, item.name);
        helper.getView(R.id.img_choose).setSelected(item.choose);
    }
}